import * as VueRouter from "vue-router"

import cby_routes from "../components/cby/router/index";
import myRouter from '@/components/mzz/myRouter/router'
import zxl from "@/components/zxl/my_route"
import lmx from '@/components/lmx/route'
import lgh_routes from "../components/lgh/router/index";
const routes = [
    ...myRouter,
    ...zxl,
    ...lgh_routes,
    ...lmx,
    ...cby_routes,
    { path: '/', redirect: "/dashBorard/home" },
    {
        path: '/dashBorard', component: () => import("@/pages/DashBoard.vue"), redirect: "/dashBorard/home", children: [
            { path: 'home', component: () => import("@/pages/Home.vue") },
            { path: 'shop', component: () => import("@/pages/Shop.vue") },
            { path: 'find', name:'find',component: () => import("@/pages/Find.vue") },
            { path: 'course', component: () => import("@/pages/Course.vue") },
            { path: 'my',name:'my', component: () => import("@/pages/My.vue") },
        ]
    }   
]

const router = VueRouter.createRouter({
    history: VueRouter.createWebHashHistory(),
    routes
})
export default router